package com.lifeng.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lifeng
 * @since 2025-01-13
 */
@Data
public class Book implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "bid", type = IdType.AUTO)
    private Integer bid;

    private String title;

    private Integer tid;

    private String publishHouse;

    private String author;


    @TableField(exist = false)
    private String tname;

    //逻辑删除
    @TableLogic
    private Integer deleted;

    //自动填充
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
